//
//  DXWFriendTrendViewController.m
//  BuDeJie
//
//  Created by 淡馨慰 on 16/7/24.
//  Copyright © 2016年 淡馨慰. All rights reserved.
//

#import "DXWFriendTrendViewController.h"
#import "DXWLoginRegisterViewController.h"

@interface DXWFriendTrendViewController ()

@end

@implementation DXWFriendTrendViewController

//监听登入按钮的点击
- (IBAction)loginRegisterBtnClick:(id)sender
{
    DXWLoginRegisterViewController *loginRegisterVC = [[DXWLoginRegisterViewController alloc]init];
//    loginRegisterVC.hidesBottomBarWhenPushed = YES;
    [self presentViewController:loginRegisterVC animated:YES completion:^{
        NSLog(@"跳转到登入界面");
    }];
//    [self.navigationController pushViewController:loginRegisterVC animated:YES];
}






- (void)viewDidLoad {
    [super viewDidLoad];

    
    
    //1.设置导航条按钮
    [self setupNavigationBar];

    
}

- (void)setupNavigationBar
{
    //1.1设置左侧按钮
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem barButtonItemWithImage:[UIImage imageNamed:@"friendsRecommentIcon"] highlightImage:[UIImage imageNamed:@"friendsRecommentIcon-click"] target:self action:@selector(friendsRecommentBtnClick)];
                                             
    //1.2设置中间标题图
    self.navigationItem.title = @"我的关注";
    
}
//监听左侧按钮点击
- (void)friendsRecommentBtnClick
{
    NSLog(@"点击了关注按钮");
}

@end
